﻿namespace HRM.CORE
{
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Mask;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms; using Common;
    using DevExpress.XtraGrid.Views.Base;

    public class xucSalaryFormula : Common.xucBase
    {
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarButtonItem bbiDelete;
        private BarButtonItem bbiEdit;
        private BarButtonItem bbiSave;
        private CalcEdit calCoefficientOvertimeHoliday;
        private CalcEdit calCoefficientOvertimeNightHoliday;
        private CalcEdit calCoefficientOvertimeNightSunday;
        private CalcEdit calCoefficientOvertimeNightWorkday;
        private CalcEdit calCoefficientOvertimeSunday;
        private CalcEdit calCoefficientOvertimeWorkday;
        private CalcEdit calHealthInsurance;
        private CalcEdit calHealthInsurance1;
        private CalcEdit calIncomeTax;
        private CalcEdit calLateEarlyMinute;
        private CalcEdit calMaximumInsurance;
        private CalcEdit calMaximumUnion;
        private CalcEdit calPersonIncomeTax;
        private CalcEdit calSocialInsurance;
        private CalcEdit calSocialInsurance1;
        private CalcEdit calUnemploymentInsurance;
        private CalcEdit calUnemploymentInsurance1;
        private CalcEdit calUnionValue;
        private CalcEdit calUnionValue1;
        private ComboBoxEdit cboOvertimeSaturdayType;
        private CalcEdit cboRoundNumberSalary;
        private ComboBoxEdit cboSalaryHourType;
        private ComboBoxEdit cboTaxOvertimeHolidayType;
        private ComboBoxEdit cboTaxOvertimeNightHolidayType;
        private ComboBoxEdit cboTaxOvertimeNightSundayType;
        private ComboBoxEdit cboTaxOvertimeNightWorkdayType;
        private ComboBoxEdit cboTaxOvertimeSundayType;
        private ComboBoxEdit cboTaxOvertimeWorkdayType;
        private ComboBoxEdit cboUnionType;
        private ComboBoxEdit cboUnionType1;
        private CheckEdit cheIsAllowanceReCreate;
        private CheckEdit cheIsGroupSalaryOvertime;
        private CheckEdit cheIsLateEarly;
        private HRM.CORE.CLASS.clsSalaryOption clsSalaryOption = new HRM.CORE.CLASS.clsSalaryOption();
        private GridColumn colFromMoney;
        private GridColumn colPITID;
        private GridColumn colTaxProgressive;
        private GridColumn colTaxRate;
        private GridColumn colTaxStep;
        private GridColumn colToMoney;
        private IContainer components = null;
        private GridView gbList;
        private GridControl gcList;
        private GroupBox grIncomeTax;
        private GroupBox grInsuranceByCompany;
        private GroupBox grInsuranceByEmployee;
        private GroupBox groupBox1;
        private GroupBox groupBox2;
        private GroupBox groupBox3;
        private GroupBox groupBox4;
        private GroupBox grOverTime;
        private GroupBox grUnion;
        private DevExpress.Utils.ImageCollection imageCollection1;
        private LabelControl labelControl1;
        private LabelControl labelControl10;
        private LabelControl labelControl11;
        private LabelControl labelControl12;
        private LabelControl labelControl13;
        private LabelControl labelControl14;
        private LabelControl labelControl15;
        private LabelControl labelControl16;
        private LabelControl labelControl17;
        private LabelControl labelControl18;
        private LabelControl labelControl19;
        private LabelControl labelControl2;
        private LabelControl labelControl20;
        private LabelControl labelControl21;
        private LabelControl labelControl22;
        private LabelControl labelControl23;
        private LabelControl labelControl24;
        private LabelControl labelControl25;
        private LabelControl labelControl26;
        private LabelControl labelControl27;
        private LabelControl labelControl28;
        private LabelControl labelControl29;
        private LabelControl labelControl3;
        private LabelControl labelControl31;
        private LabelControl labelControl32;
        private LabelControl labelControl4;
        private LabelControl labelControl5;
        private LabelControl labelControl6;
        private LabelControl labelControl7;
        private LabelControl labelControl8;
        private LabelControl labelControl9;
        private LabelControl lbTaxOvertimeHolidayType;
        private LabelControl lbTaxOvertimeNightHolidayType;
        private LabelControl lbTaxOvertimeNightSundayType;
        private LabelControl lbTaxOvertimeNightWorkdayType;
        private LabelControl lbTaxOvertimeSundayType;
        private LabelControl lbTaxOvertimeWorkdayType;
        private LabelControl lbUnitCofficientUnion;
        private LabelControl lbUnitCofficientUnion1;
        private LabelControl lcCoefficientUnion;
        private LabelControl lcHealthInsurance1;
        private LabelControl lcHoliday;
        private LabelControl lcIncomeTax;
        private LabelControl lcMaximumInsurance;
        private LabelControl lcMaximumUnion;
        private LabelControl lcPersonIncomeTax;
        private LabelControl lcSocialInsurance1;
        private LabelControl lcSunday;
        private LabelControl lcUnemploymentInsurance1;
        private LabelControl lcWorkday;
        private Panel panel1;
        private PopupMenu ppMenu;
        private RepositoryItemCalcEdit repMoney;
        private TextEdit txtTaxOvertimeHolidayValue;
        private TextEdit txtTaxOvertimeNightHolidayValue;
        private TextEdit txtTaxOvertimeNightSundayValue;
        private TextEdit txtTaxOvertimeNightWorkdayValue;
        private TextEdit txtTaxOvertimeSundayValue;
        private TextEdit txtTaxOvertimeWorkdayValue;
        private XtraScrollableControl xtraScrollableControl1;

        public xucSalaryFormula()
        {
            this.InitializeComponent();
            this.Init();
            this.InitPIT();
        }

        private void bbiDelete_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.gbList.DeleteSelectedRows();
        }

        private void cboCoefficientUnionType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.cboUnionType.SelectedIndex == 0)
            {
                this.lbUnitCofficientUnion.Text = "%";
            }
            else
            {
                this.lbUnitCofficientUnion.Text = "VND";
            }
            if (decimal.Parse(this.calUnionValue.Text) > 100M)
            {
                this.calUnionValue.EditValue = 1;
            }
        }

        private void cboCoefficientUnionType1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.cboUnionType1.SelectedIndex == 0)
            {
                this.lbUnitCofficientUnion1.Text = "%";
            }
            else
            {
                this.lbUnitCofficientUnion1.Text = "VND";
            }
            if (decimal.Parse(this.calUnionValue1.Text) > 100M)
            {
                this.calUnionValue1.EditValue = 2;
            }
        }

        private void cboTaxOvertimeWorkdayType_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBoxEdit edit = sender as ComboBoxEdit;
            TextEdit txtTaxOvertimeWorkdayValue = new TextEdit();
            LabelControl lbTaxOvertimeWorkdayType = new LabelControl();
            if (edit == this.cboTaxOvertimeWorkdayType)
            {
                txtTaxOvertimeWorkdayValue = this.txtTaxOvertimeWorkdayValue;
                lbTaxOvertimeWorkdayType = this.lbTaxOvertimeWorkdayType;
            }
            else if (edit == this.cboTaxOvertimeSundayType)
            {
                txtTaxOvertimeWorkdayValue = this.txtTaxOvertimeSundayValue;
                lbTaxOvertimeWorkdayType = this.lbTaxOvertimeSundayType;
            }
            else if (edit == this.cboTaxOvertimeHolidayType)
            {
                txtTaxOvertimeWorkdayValue = this.txtTaxOvertimeHolidayValue;
                lbTaxOvertimeWorkdayType = this.lbTaxOvertimeHolidayType;
            }
            else if (edit == this.cboTaxOvertimeNightWorkdayType)
            {
                txtTaxOvertimeWorkdayValue = this.txtTaxOvertimeNightWorkdayValue;
                lbTaxOvertimeWorkdayType = this.lbTaxOvertimeNightWorkdayType;
            }
            else if (edit == this.cboTaxOvertimeNightSundayType)
            {
                txtTaxOvertimeWorkdayValue = this.txtTaxOvertimeNightSundayValue;
                lbTaxOvertimeWorkdayType = this.lbTaxOvertimeNightSundayType;
            }
            else if (edit == this.cboTaxOvertimeNightHolidayType)
            {
                txtTaxOvertimeWorkdayValue = this.txtTaxOvertimeNightHolidayValue;
                lbTaxOvertimeWorkdayType = this.lbTaxOvertimeNightHolidayType;
            }
            if (edit.SelectedIndex == 0)
            {
                lbTaxOvertimeWorkdayType.Text = "%";
                txtTaxOvertimeWorkdayValue.Properties.Mask.MaskType = MaskType.Numeric;
                txtTaxOvertimeWorkdayValue.Properties.Mask.EditMask = "";
                txtTaxOvertimeWorkdayValue.Properties.Mask.UseMaskAsDisplayFormat = true;
            }
            else
            {
                lbTaxOvertimeWorkdayType.Text = "";
                txtTaxOvertimeWorkdayValue.Properties.Mask.MaskType = MaskType.RegEx;
                txtTaxOvertimeWorkdayValue.Properties.Mask.EditMask = "[0-9]/[1-9]";
                txtTaxOvertimeWorkdayValue.Properties.Mask.UseMaskAsDisplayFormat = true;
                txtTaxOvertimeWorkdayValue.Properties.Mask.IgnoreMaskBlank = false;
                txtTaxOvertimeWorkdayValue.Properties.AllowNullInput = DefaultBoolean.False;
            }
        }

        private void cheIsLateEarly_CheckedChanged(object sender, EventArgs e)
        {
            if (this.cheIsLateEarly.Checked)
            {
                this.calLateEarlyMinute.Enabled = true;
            }
            else
            {
                this.calLateEarlyMinute.Enabled = false;
            }
            if (!this.cheIsLateEarly.Enabled)
            {
                this.calLateEarlyMinute.Enabled = false;
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_InitNewRow(object sender, InitNewRowEventArgs e)
        {
            this.gbList.SetRowCellValue(e.RowHandle, this.colPITID, Guid.NewGuid());
            this.gbList.SetRowCellValue(e.RowHandle, this.colTaxStep, this.gbList.RowCount);
        }

        private void gbList_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete)
            {
                this.gbList.DeleteSelectedRows();
            }
            if (e.KeyCode == Keys.F5)
            {
                this.InitPIT();
            }
            if (e.KeyCode == Keys.Escape)
            {
                this.gbList.OptionsView.NewItemRowPosition = NewItemRowPosition.Bottom;
            }
        }

        private void Init()
        {
            DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
            dic_salary_formula.Get();
            this.calSocialInsurance.EditValue = dic_salary_formula.SocialInsurance;
            this.calHealthInsurance.EditValue = dic_salary_formula.HealthInsurance;
            this.calUnemploymentInsurance.EditValue = dic_salary_formula.UnemploymentInsurance;
            this.calSocialInsurance1.EditValue = dic_salary_formula.SocialInsurance1;
            this.calHealthInsurance1.EditValue = dic_salary_formula.HealthInsurance1;
            this.calUnemploymentInsurance1.EditValue = dic_salary_formula.UnemploymentInsurance1;
            this.calMaximumInsurance.EditValue = dic_salary_formula.MaximumInsurance;
            this.cboUnionType.SelectedIndex = dic_salary_formula.UnionType;
            if (this.cboUnionType.SelectedIndex == 0)
            {
                this.calUnionValue.EditValue = dic_salary_formula.UnionValue;
            }
            else
            {
                this.calUnionValue.EditValue = dic_salary_formula.UnionValue;
            }

            this.cboUnionType1.SelectedIndex = dic_salary_formula.UnionType1;
            if (this.cboUnionType1.SelectedIndex == 0)
            {
                this.calUnionValue1.EditValue = dic_salary_formula.UnionValue1;
            }
            else
            {
                this.calUnionValue.EditValue = dic_salary_formula.UnionValue1;
            }

            this.calMaximumUnion.EditValue = dic_salary_formula.MaximumUnion;
            this.calIncomeTax.EditValue = dic_salary_formula.IncomeTax;
            this.calPersonIncomeTax.EditValue = dic_salary_formula.PersonIncomeTax;
            this.calCoefficientOvertimeWorkday.EditValue = dic_salary_formula.CoefficientOvertimeWorkday;
            this.calCoefficientOvertimeSunday.EditValue = dic_salary_formula.CoefficientOvertimeSunday;
            this.calCoefficientOvertimeHoliday.EditValue = dic_salary_formula.CoefficientOvertimeHoliday;
            this.calCoefficientOvertimeNightWorkday.EditValue = dic_salary_formula.CoefficientOvertimeNightWorkday;
            this.calCoefficientOvertimeNightSunday.EditValue = dic_salary_formula.CoefficientOvertimeNightSunday;
            this.calCoefficientOvertimeNightHoliday.EditValue = dic_salary_formula.CoefficientOvertimeNightHoliday;
            this.cboTaxOvertimeWorkdayType.SelectedIndex = dic_salary_formula.TaxOvertimeWorkdayType;
            this.txtTaxOvertimeWorkdayValue.Text = dic_salary_formula.TaxOvertimeWorkdayValue;
            this.cboTaxOvertimeSundayType.SelectedIndex = dic_salary_formula.TaxOvertimeSundayType;
            this.txtTaxOvertimeSundayValue.Text = dic_salary_formula.TaxOvertimeSundayValue;
            this.cboTaxOvertimeHolidayType.SelectedIndex = dic_salary_formula.TaxOvertimeHolidayType;
            this.txtTaxOvertimeHolidayValue.Text = dic_salary_formula.TaxOvertimeHolidayValue;
            this.cboTaxOvertimeNightWorkdayType.SelectedIndex = dic_salary_formula.TaxOvertimeNightWorkdayType;
            this.txtTaxOvertimeNightWorkdayValue.Text = dic_salary_formula.TaxOvertimeNightWorkdayValue;
            this.cboTaxOvertimeNightSundayType.SelectedIndex = dic_salary_formula.TaxOvertimeNightSundayType;
            this.txtTaxOvertimeNightSundayValue.Text = dic_salary_formula.TaxOvertimeNightSundayValue;
            this.cboTaxOvertimeNightHolidayType.SelectedIndex = dic_salary_formula.TaxOvertimeNightHolidayType;
            this.txtTaxOvertimeNightHolidayValue.Text = dic_salary_formula.TaxOvertimeNightHolidayValue;
            this.cboOvertimeSaturdayType.SelectedIndex = dic_salary_formula.OvertimeSaturdayType;
            this.cheIsLateEarly.Checked = dic_salary_formula.IsLateEarly;
            this.calLateEarlyMinute.EditValue = dic_salary_formula.LateEarlyMinute;
            this.cheIsGroupSalaryOvertime.Checked = dic_salary_formula.IsGroupSalaryOvertime;
            this.cboSalaryHourType.SelectedIndex = dic_salary_formula.SalaryHourType;
            this.cboRoundNumberSalary.Value = dic_salary_formula.RoundNumberSalary;
            this.cheIsAllowanceReCreate.Checked = this.clsSalaryOption.IsAllowanceReCreate;
        }

        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(xucSalaryFormula));
            this.xtraScrollableControl1 = new DevExpress.XtraEditors.XtraScrollableControl();
            this.panel1 = new System.Windows.Forms.Panel();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.txtTaxOvertimeNightHolidayValue = new DevExpress.XtraEditors.TextEdit();
            this.txtTaxOvertimeNightSundayValue = new DevExpress.XtraEditors.TextEdit();
            this.txtTaxOvertimeNightWorkdayValue = new DevExpress.XtraEditors.TextEdit();
            this.txtTaxOvertimeHolidayValue = new DevExpress.XtraEditors.TextEdit();
            this.txtTaxOvertimeSundayValue = new DevExpress.XtraEditors.TextEdit();
            this.lbTaxOvertimeNightWorkdayType = new DevExpress.XtraEditors.LabelControl();
            this.lbTaxOvertimeNightHolidayType = new DevExpress.XtraEditors.LabelControl();
            this.lbTaxOvertimeNightSundayType = new DevExpress.XtraEditors.LabelControl();
            this.lbTaxOvertimeHolidayType = new DevExpress.XtraEditors.LabelControl();
            this.lbTaxOvertimeSundayType = new DevExpress.XtraEditors.LabelControl();
            this.lbTaxOvertimeWorkdayType = new DevExpress.XtraEditors.LabelControl();
            this.txtTaxOvertimeWorkdayValue = new DevExpress.XtraEditors.TextEdit();
            this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
            this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
            this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
            this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
            this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
            this.imageCollection1 = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiSave = new DevExpress.XtraBars.BarButtonItem();
            this.bbiEdit = new DevExpress.XtraBars.BarButtonItem();
            this.bbiDelete = new DevExpress.XtraBars.BarButtonItem();
            this.cboTaxOvertimeNightHolidayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.cboTaxOvertimeHolidayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.cboTaxOvertimeNightSundayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.cboTaxOvertimeSundayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.labelControl32 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl27 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl31 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl26 = new DevExpress.XtraEditors.LabelControl();
            this.cboTaxOvertimeNightWorkdayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.cboTaxOvertimeWorkdayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.labelControl29 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl24 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl21 = new DevExpress.XtraEditors.LabelControl();
            this.lcPersonIncomeTax = new DevExpress.XtraEditors.LabelControl();
            this.calPersonIncomeTax = new DevExpress.XtraEditors.CalcEdit();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.labelControl28 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl25 = new DevExpress.XtraEditors.LabelControl();
            this.cboRoundNumberSalary = new DevExpress.XtraEditors.CalcEdit();
            this.labelControl23 = new DevExpress.XtraEditors.LabelControl();
            this.cboSalaryHourType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.cheIsAllowanceReCreate = new DevExpress.XtraEditors.CheckEdit();
            this.cheIsGroupSalaryOvertime = new DevExpress.XtraEditors.CheckEdit();
            this.labelControl6 = new DevExpress.XtraEditors.LabelControl();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
            this.calLateEarlyMinute = new DevExpress.XtraEditors.CalcEdit();
            this.cheIsLateEarly = new DevExpress.XtraEditors.CheckEdit();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.labelControl22 = new DevExpress.XtraEditors.LabelControl();
            this.gcList = new DevExpress.XtraGrid.GridControl();
            this.gbList = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.colPITID = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colTaxStep = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colFromMoney = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repMoney = new DevExpress.XtraEditors.Repository.RepositoryItemCalcEdit();
            this.colToMoney = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colTaxProgressive = new DevExpress.XtraGrid.Columns.GridColumn();
            this.colTaxRate = new DevExpress.XtraGrid.Columns.GridColumn();
            this.grIncomeTax = new System.Windows.Forms.GroupBox();
            this.labelControl20 = new DevExpress.XtraEditors.LabelControl();
            this.lcIncomeTax = new DevExpress.XtraEditors.LabelControl();
            this.calIncomeTax = new DevExpress.XtraEditors.CalcEdit();
            this.grOverTime = new System.Windows.Forms.GroupBox();
            this.cboOvertimeSaturdayType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.labelControl5 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl13 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl11 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl10 = new DevExpress.XtraEditors.LabelControl();
            this.calCoefficientOvertimeNightSunday = new DevExpress.XtraEditors.CalcEdit();
            this.calCoefficientOvertimeNightHoliday = new DevExpress.XtraEditors.CalcEdit();
            this.calCoefficientOvertimeNightWorkday = new DevExpress.XtraEditors.CalcEdit();
            this.lcSunday = new DevExpress.XtraEditors.LabelControl();
            this.calCoefficientOvertimeSunday = new DevExpress.XtraEditors.CalcEdit();
            this.lcHoliday = new DevExpress.XtraEditors.LabelControl();
            this.calCoefficientOvertimeHoliday = new DevExpress.XtraEditors.CalcEdit();
            this.lcWorkday = new DevExpress.XtraEditors.LabelControl();
            this.calCoefficientOvertimeWorkday = new DevExpress.XtraEditors.CalcEdit();
            this.grUnion = new System.Windows.Forms.GroupBox();
            this.cboUnionType1 = new DevExpress.XtraEditors.ComboBoxEdit();
            this.cboUnionType = new DevExpress.XtraEditors.ComboBoxEdit();
            this.lbUnitCofficientUnion1 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl7 = new DevExpress.XtraEditors.LabelControl();
            this.calUnionValue1 = new DevExpress.XtraEditors.CalcEdit();
            this.lbUnitCofficientUnion = new DevExpress.XtraEditors.LabelControl();
            this.labelControl12 = new DevExpress.XtraEditors.LabelControl();
            this.lcMaximumUnion = new DevExpress.XtraEditors.LabelControl();
            this.calMaximumUnion = new DevExpress.XtraEditors.CalcEdit();
            this.lcCoefficientUnion = new DevExpress.XtraEditors.LabelControl();
            this.calUnionValue = new DevExpress.XtraEditors.CalcEdit();
            this.lcMaximumInsurance = new DevExpress.XtraEditors.LabelControl();
            this.calMaximumInsurance = new DevExpress.XtraEditors.CalcEdit();
            this.labelControl8 = new DevExpress.XtraEditors.LabelControl();
            this.grInsuranceByCompany = new System.Windows.Forms.GroupBox();
            this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl9 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl17 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl18 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl19 = new DevExpress.XtraEditors.LabelControl();
            this.calSocialInsurance1 = new DevExpress.XtraEditors.CalcEdit();
            this.calUnemploymentInsurance1 = new DevExpress.XtraEditors.CalcEdit();
            this.calHealthInsurance1 = new DevExpress.XtraEditors.CalcEdit();
            this.grInsuranceByEmployee = new System.Windows.Forms.GroupBox();
            this.labelControl16 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl15 = new DevExpress.XtraEditors.LabelControl();
            this.labelControl14 = new DevExpress.XtraEditors.LabelControl();
            this.lcUnemploymentInsurance1 = new DevExpress.XtraEditors.LabelControl();
            this.calUnemploymentInsurance = new DevExpress.XtraEditors.CalcEdit();
            this.lcHealthInsurance1 = new DevExpress.XtraEditors.LabelControl();
            this.calHealthInsurance = new DevExpress.XtraEditors.CalcEdit();
            this.lcSocialInsurance1 = new DevExpress.XtraEditors.LabelControl();
            this.calSocialInsurance = new DevExpress.XtraEditors.CalcEdit();
            this.ppMenu = new DevExpress.XtraBars.PopupMenu(this.components);
            this.xtraScrollableControl1.SuspendLayout();
            this.groupBox4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeNightHolidayValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeNightSundayValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeNightWorkdayValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeHolidayValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeSundayValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeWorkdayValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeNightHolidayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeHolidayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeNightSundayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeSundayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeNightWorkdayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeWorkdayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calPersonIncomeTax.Properties)).BeginInit();
            this.groupBox3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cboRoundNumberSalary.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboSalaryHourType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cheIsAllowanceReCreate.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cheIsGroupSalaryOvertime.Properties)).BeginInit();
            this.groupBox2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calLateEarlyMinute.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cheIsLateEarly.Properties)).BeginInit();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.gcList)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gbList)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repMoney)).BeginInit();
            this.grIncomeTax.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calIncomeTax.Properties)).BeginInit();
            this.grOverTime.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cboOvertimeSaturdayType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeNightSunday.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeNightHoliday.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeNightWorkday.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeSunday.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeHoliday.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeWorkday.Properties)).BeginInit();
            this.grUnion.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cboUnionType1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboUnionType.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calUnionValue1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calMaximumUnion.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calUnionValue.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calMaximumInsurance.Properties)).BeginInit();
            this.grInsuranceByCompany.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calSocialInsurance1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calUnemploymentInsurance1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calHealthInsurance1.Properties)).BeginInit();
            this.grInsuranceByEmployee.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calUnemploymentInsurance.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calHealthInsurance.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.calSocialInsurance.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ppMenu)).BeginInit();
            this.SuspendLayout();
            // 
            // xtraScrollableControl1
            // 
            this.xtraScrollableControl1.Controls.Add(this.panel1);
            this.xtraScrollableControl1.Controls.Add(this.groupBox4);
            this.xtraScrollableControl1.Controls.Add(this.groupBox3);
            this.xtraScrollableControl1.Controls.Add(this.groupBox2);
            this.xtraScrollableControl1.Controls.Add(this.groupBox1);
            this.xtraScrollableControl1.Controls.Add(this.grIncomeTax);
            this.xtraScrollableControl1.Controls.Add(this.grOverTime);
            this.xtraScrollableControl1.Controls.Add(this.grUnion);
            this.xtraScrollableControl1.Controls.Add(this.lcMaximumInsurance);
            this.xtraScrollableControl1.Controls.Add(this.calMaximumInsurance);
            this.xtraScrollableControl1.Controls.Add(this.labelControl8);
            this.xtraScrollableControl1.Controls.Add(this.grInsuranceByCompany);
            this.xtraScrollableControl1.Controls.Add(this.grInsuranceByEmployee);
            this.xtraScrollableControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xtraScrollableControl1.Location = new System.Drawing.Point(0, 0);
            this.xtraScrollableControl1.Name = "xtraScrollableControl1";
            this.xtraScrollableControl1.Size = new System.Drawing.Size(506, 1429);
            this.xtraScrollableControl1.TabIndex = 0;
            // 
            // panel1
            // 
            this.panel1.Location = new System.Drawing.Point(18, 1411);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(465, 14);
            this.panel1.TabIndex = 22;
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.txtTaxOvertimeNightHolidayValue);
            this.groupBox4.Controls.Add(this.txtTaxOvertimeNightSundayValue);
            this.groupBox4.Controls.Add(this.txtTaxOvertimeNightWorkdayValue);
            this.groupBox4.Controls.Add(this.txtTaxOvertimeHolidayValue);
            this.groupBox4.Controls.Add(this.txtTaxOvertimeSundayValue);
            this.groupBox4.Controls.Add(this.lbTaxOvertimeNightWorkdayType);
            this.groupBox4.Controls.Add(this.lbTaxOvertimeNightHolidayType);
            this.groupBox4.Controls.Add(this.lbTaxOvertimeNightSundayType);
            this.groupBox4.Controls.Add(this.lbTaxOvertimeHolidayType);
            this.groupBox4.Controls.Add(this.lbTaxOvertimeSundayType);
            this.groupBox4.Controls.Add(this.lbTaxOvertimeWorkdayType);
            this.groupBox4.Controls.Add(this.txtTaxOvertimeWorkdayValue);
            this.groupBox4.Controls.Add(this.cboTaxOvertimeNightHolidayType);
            this.groupBox4.Controls.Add(this.cboTaxOvertimeHolidayType);
            this.groupBox4.Controls.Add(this.cboTaxOvertimeNightSundayType);
            this.groupBox4.Controls.Add(this.cboTaxOvertimeSundayType);
            this.groupBox4.Controls.Add(this.labelControl32);
            this.groupBox4.Controls.Add(this.labelControl27);
            this.groupBox4.Controls.Add(this.labelControl31);
            this.groupBox4.Controls.Add(this.labelControl26);
            this.groupBox4.Controls.Add(this.cboTaxOvertimeNightWorkdayType);
            this.groupBox4.Controls.Add(this.cboTaxOvertimeWorkdayType);
            this.groupBox4.Controls.Add(this.labelControl29);
            this.groupBox4.Controls.Add(this.labelControl24);
            this.groupBox4.Controls.Add(this.labelControl21);
            this.groupBox4.Controls.Add(this.lcPersonIncomeTax);
            this.groupBox4.Controls.Add(this.calPersonIncomeTax);
            this.groupBox4.Location = new System.Drawing.Point(19, 417);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(464, 269);
            this.groupBox4.TabIndex = 21;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Giảm Trừ Thuế";
            // 
            // txtTaxOvertimeNightHolidayValue
            // 
            this.txtTaxOvertimeNightHolidayValue.EditValue = "0";
            this.txtTaxOvertimeNightHolidayValue.Location = new System.Drawing.Point(310, 235);
            this.txtTaxOvertimeNightHolidayValue.Name = "txtTaxOvertimeNightHolidayValue";
            this.txtTaxOvertimeNightHolidayValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.txtTaxOvertimeNightHolidayValue.Properties.Appearance.Options.UseFont = true;
            this.txtTaxOvertimeNightHolidayValue.Properties.Appearance.Options.UseTextOptions = true;
            this.txtTaxOvertimeNightHolidayValue.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeNightHolidayValue.Properties.AppearanceFocused.Options.UseTextOptions = true;
            this.txtTaxOvertimeNightHolidayValue.Properties.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeNightHolidayValue.Size = new System.Drawing.Size(108, 20);
            this.txtTaxOvertimeNightHolidayValue.TabIndex = 18;
            // 
            // txtTaxOvertimeNightSundayValue
            // 
            this.txtTaxOvertimeNightSundayValue.EditValue = "0";
            this.txtTaxOvertimeNightSundayValue.Location = new System.Drawing.Point(309, 203);
            this.txtTaxOvertimeNightSundayValue.Name = "txtTaxOvertimeNightSundayValue";
            this.txtTaxOvertimeNightSundayValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.txtTaxOvertimeNightSundayValue.Properties.Appearance.Options.UseFont = true;
            this.txtTaxOvertimeNightSundayValue.Properties.Appearance.Options.UseTextOptions = true;
            this.txtTaxOvertimeNightSundayValue.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeNightSundayValue.Properties.AppearanceFocused.Options.UseTextOptions = true;
            this.txtTaxOvertimeNightSundayValue.Properties.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeNightSundayValue.Size = new System.Drawing.Size(108, 20);
            this.txtTaxOvertimeNightSundayValue.TabIndex = 18;
            // 
            // txtTaxOvertimeNightWorkdayValue
            // 
            this.txtTaxOvertimeNightWorkdayValue.EditValue = "0";
            this.txtTaxOvertimeNightWorkdayValue.Location = new System.Drawing.Point(310, 171);
            this.txtTaxOvertimeNightWorkdayValue.Name = "txtTaxOvertimeNightWorkdayValue";
            this.txtTaxOvertimeNightWorkdayValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.txtTaxOvertimeNightWorkdayValue.Properties.Appearance.Options.UseFont = true;
            this.txtTaxOvertimeNightWorkdayValue.Properties.Appearance.Options.UseTextOptions = true;
            this.txtTaxOvertimeNightWorkdayValue.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeNightWorkdayValue.Properties.AppearanceFocused.Options.UseTextOptions = true;
            this.txtTaxOvertimeNightWorkdayValue.Properties.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeNightWorkdayValue.Size = new System.Drawing.Size(108, 20);
            this.txtTaxOvertimeNightWorkdayValue.TabIndex = 18;
            // 
            // txtTaxOvertimeHolidayValue
            // 
            this.txtTaxOvertimeHolidayValue.EditValue = "0";
            this.txtTaxOvertimeHolidayValue.Location = new System.Drawing.Point(310, 131);
            this.txtTaxOvertimeHolidayValue.Name = "txtTaxOvertimeHolidayValue";
            this.txtTaxOvertimeHolidayValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.txtTaxOvertimeHolidayValue.Properties.Appearance.Options.UseFont = true;
            this.txtTaxOvertimeHolidayValue.Properties.Appearance.Options.UseTextOptions = true;
            this.txtTaxOvertimeHolidayValue.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeHolidayValue.Properties.AppearanceFocused.Options.UseTextOptions = true;
            this.txtTaxOvertimeHolidayValue.Properties.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeHolidayValue.Size = new System.Drawing.Size(108, 20);
            this.txtTaxOvertimeHolidayValue.TabIndex = 18;
            // 
            // txtTaxOvertimeSundayValue
            // 
            this.txtTaxOvertimeSundayValue.EditValue = "0";
            this.txtTaxOvertimeSundayValue.Location = new System.Drawing.Point(310, 99);
            this.txtTaxOvertimeSundayValue.Name = "txtTaxOvertimeSundayValue";
            this.txtTaxOvertimeSundayValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.txtTaxOvertimeSundayValue.Properties.Appearance.Options.UseFont = true;
            this.txtTaxOvertimeSundayValue.Properties.Appearance.Options.UseTextOptions = true;
            this.txtTaxOvertimeSundayValue.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeSundayValue.Properties.AppearanceFocused.Options.UseTextOptions = true;
            this.txtTaxOvertimeSundayValue.Properties.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeSundayValue.Size = new System.Drawing.Size(108, 20);
            this.txtTaxOvertimeSundayValue.TabIndex = 18;
            // 
            // lbTaxOvertimeNightWorkdayType
            // 
            this.lbTaxOvertimeNightWorkdayType.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbTaxOvertimeNightWorkdayType.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbTaxOvertimeNightWorkdayType.Location = new System.Drawing.Point(424, 174);
            this.lbTaxOvertimeNightWorkdayType.Name = "lbTaxOvertimeNightWorkdayType";
            this.lbTaxOvertimeNightWorkdayType.Size = new System.Drawing.Size(13, 13);
            this.lbTaxOvertimeNightWorkdayType.TabIndex = 11;
            this.lbTaxOvertimeNightWorkdayType.Text = "%";
            // 
            // lbTaxOvertimeNightHolidayType
            // 
            this.lbTaxOvertimeNightHolidayType.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbTaxOvertimeNightHolidayType.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbTaxOvertimeNightHolidayType.Location = new System.Drawing.Point(424, 238);
            this.lbTaxOvertimeNightHolidayType.Name = "lbTaxOvertimeNightHolidayType";
            this.lbTaxOvertimeNightHolidayType.Size = new System.Drawing.Size(13, 13);
            this.lbTaxOvertimeNightHolidayType.TabIndex = 11;
            this.lbTaxOvertimeNightHolidayType.Text = "%";
            // 
            // lbTaxOvertimeNightSundayType
            // 
            this.lbTaxOvertimeNightSundayType.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbTaxOvertimeNightSundayType.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbTaxOvertimeNightSundayType.Location = new System.Drawing.Point(424, 206);
            this.lbTaxOvertimeNightSundayType.Name = "lbTaxOvertimeNightSundayType";
            this.lbTaxOvertimeNightSundayType.Size = new System.Drawing.Size(13, 13);
            this.lbTaxOvertimeNightSundayType.TabIndex = 11;
            this.lbTaxOvertimeNightSundayType.Text = "%";
            // 
            // lbTaxOvertimeHolidayType
            // 
            this.lbTaxOvertimeHolidayType.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbTaxOvertimeHolidayType.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbTaxOvertimeHolidayType.Location = new System.Drawing.Point(425, 135);
            this.lbTaxOvertimeHolidayType.Name = "lbTaxOvertimeHolidayType";
            this.lbTaxOvertimeHolidayType.Size = new System.Drawing.Size(13, 13);
            this.lbTaxOvertimeHolidayType.TabIndex = 11;
            this.lbTaxOvertimeHolidayType.Text = "%";
            // 
            // lbTaxOvertimeSundayType
            // 
            this.lbTaxOvertimeSundayType.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbTaxOvertimeSundayType.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbTaxOvertimeSundayType.Location = new System.Drawing.Point(425, 102);
            this.lbTaxOvertimeSundayType.Name = "lbTaxOvertimeSundayType";
            this.lbTaxOvertimeSundayType.Size = new System.Drawing.Size(13, 13);
            this.lbTaxOvertimeSundayType.TabIndex = 11;
            this.lbTaxOvertimeSundayType.Text = "%";
            // 
            // lbTaxOvertimeWorkdayType
            // 
            this.lbTaxOvertimeWorkdayType.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbTaxOvertimeWorkdayType.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbTaxOvertimeWorkdayType.Location = new System.Drawing.Point(424, 70);
            this.lbTaxOvertimeWorkdayType.Name = "lbTaxOvertimeWorkdayType";
            this.lbTaxOvertimeWorkdayType.Size = new System.Drawing.Size(13, 13);
            this.lbTaxOvertimeWorkdayType.TabIndex = 11;
            this.lbTaxOvertimeWorkdayType.Text = "%";
            // 
            // txtTaxOvertimeWorkdayValue
            // 
            this.txtTaxOvertimeWorkdayValue.EditValue = "0";
            this.txtTaxOvertimeWorkdayValue.Location = new System.Drawing.Point(310, 67);
            this.txtTaxOvertimeWorkdayValue.MenuManager = this.barManager1;
            this.txtTaxOvertimeWorkdayValue.Name = "txtTaxOvertimeWorkdayValue";
            this.txtTaxOvertimeWorkdayValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.txtTaxOvertimeWorkdayValue.Properties.Appearance.Options.UseFont = true;
            this.txtTaxOvertimeWorkdayValue.Properties.Appearance.Options.UseTextOptions = true;
            this.txtTaxOvertimeWorkdayValue.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeWorkdayValue.Properties.AppearanceFocused.Options.UseTextOptions = true;
            this.txtTaxOvertimeWorkdayValue.Properties.AppearanceFocused.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.txtTaxOvertimeWorkdayValue.Size = new System.Drawing.Size(108, 20);
            this.txtTaxOvertimeWorkdayValue.TabIndex = 18;
            // 
            // barManager1
            // 
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection1;
            this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
            this.bbiSave,
            this.bbiEdit,
            this.bbiDelete});
            this.barManager1.MaxItemId = 3;
            // 
            // barDockControlTop
            // 
            this.barDockControlTop.CausesValidation = false;
            this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
            this.barDockControlTop.Location = new System.Drawing.Point(0, 0);
            this.barDockControlTop.Size = new System.Drawing.Size(506, 0);
            // 
            // barDockControlBottom
            // 
            this.barDockControlBottom.CausesValidation = false;
            this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.barDockControlBottom.Location = new System.Drawing.Point(0, 1429);
            this.barDockControlBottom.Size = new System.Drawing.Size(506, 0);
            // 
            // barDockControlLeft
            // 
            this.barDockControlLeft.CausesValidation = false;
            this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
            this.barDockControlLeft.Location = new System.Drawing.Point(0, 0);
            this.barDockControlLeft.Size = new System.Drawing.Size(0, 1429);
            // 
            // barDockControlRight
            // 
            this.barDockControlRight.CausesValidation = false;
            this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
            this.barDockControlRight.Location = new System.Drawing.Point(506, 0);
            this.barDockControlRight.Size = new System.Drawing.Size(0, 1429);
            // 
            // imageCollection1
            // 
            this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream")));
            // 
            // bbiSave
            // 
            this.bbiSave.Caption = "Áp Dụng";
            this.bbiSave.Id = 0;
            this.bbiSave.ImageIndex = 2;
            this.bbiSave.Name = "bbiSave";
            // 
            // bbiEdit
            // 
            this.bbiEdit.Caption = "Thay Đổi";
            this.bbiEdit.Id = 1;
            this.bbiEdit.ImageIndex = 5;
            this.bbiEdit.Name = "bbiEdit";
            // 
            // bbiDelete
            // 
            this.bbiDelete.Caption = "Xóa";
            this.bbiDelete.Id = 2;
            this.bbiDelete.ImageIndex = 3;
            this.bbiDelete.Name = "bbiDelete";
            this.bbiDelete.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiDelete_ItemClick);
            // 
            // cboTaxOvertimeNightHolidayType
            // 
            this.cboTaxOvertimeNightHolidayType.Location = new System.Drawing.Point(158, 235);
            this.cboTaxOvertimeNightHolidayType.Name = "cboTaxOvertimeNightHolidayType";
            this.cboTaxOvertimeNightHolidayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboTaxOvertimeNightHolidayType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo tỷ lệ phân số"});
            this.cboTaxOvertimeNightHolidayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboTaxOvertimeNightHolidayType.Size = new System.Drawing.Size(148, 20);
            this.cboTaxOvertimeNightHolidayType.TabIndex = 17;
            this.cboTaxOvertimeNightHolidayType.SelectedIndexChanged += new System.EventHandler(this.cboTaxOvertimeWorkdayType_SelectedIndexChanged);
            // 
            // cboTaxOvertimeHolidayType
            // 
            this.cboTaxOvertimeHolidayType.Location = new System.Drawing.Point(158, 131);
            this.cboTaxOvertimeHolidayType.Name = "cboTaxOvertimeHolidayType";
            this.cboTaxOvertimeHolidayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboTaxOvertimeHolidayType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo tỷ lệ phân số"});
            this.cboTaxOvertimeHolidayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboTaxOvertimeHolidayType.Size = new System.Drawing.Size(148, 20);
            this.cboTaxOvertimeHolidayType.TabIndex = 17;
            this.cboTaxOvertimeHolidayType.SelectedIndexChanged += new System.EventHandler(this.cboTaxOvertimeWorkdayType_SelectedIndexChanged);
            // 
            // cboTaxOvertimeNightSundayType
            // 
            this.cboTaxOvertimeNightSundayType.Location = new System.Drawing.Point(158, 203);
            this.cboTaxOvertimeNightSundayType.Name = "cboTaxOvertimeNightSundayType";
            this.cboTaxOvertimeNightSundayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboTaxOvertimeNightSundayType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo tỷ lệ phân số"});
            this.cboTaxOvertimeNightSundayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboTaxOvertimeNightSundayType.Size = new System.Drawing.Size(148, 20);
            this.cboTaxOvertimeNightSundayType.TabIndex = 17;
            this.cboTaxOvertimeNightSundayType.SelectedIndexChanged += new System.EventHandler(this.cboTaxOvertimeWorkdayType_SelectedIndexChanged);
            // 
            // cboTaxOvertimeSundayType
            // 
            this.cboTaxOvertimeSundayType.Location = new System.Drawing.Point(158, 99);
            this.cboTaxOvertimeSundayType.MenuManager = this.barManager1;
            this.cboTaxOvertimeSundayType.Name = "cboTaxOvertimeSundayType";
            this.cboTaxOvertimeSundayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboTaxOvertimeSundayType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo tỷ lệ phân số"});
            this.cboTaxOvertimeSundayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboTaxOvertimeSundayType.Size = new System.Drawing.Size(148, 20);
            this.cboTaxOvertimeSundayType.TabIndex = 17;
            this.cboTaxOvertimeSundayType.SelectedIndexChanged += new System.EventHandler(this.cboTaxOvertimeWorkdayType_SelectedIndexChanged);
            // 
            // labelControl32
            // 
            this.labelControl32.Location = new System.Drawing.Point(9, 238);
            this.labelControl32.Name = "labelControl32";
            this.labelControl32.Size = new System.Drawing.Size(139, 13);
            this.labelControl32.TabIndex = 14;
            this.labelControl32.Text = "Giảm trừ TCĐ. Ngày nghỉ, lễ:";
            // 
            // labelControl27
            // 
            this.labelControl27.Location = new System.Drawing.Point(9, 134);
            this.labelControl27.Name = "labelControl27";
            this.labelControl27.Size = new System.Drawing.Size(131, 13);
            this.labelControl27.TabIndex = 14;
            this.labelControl27.Text = "Giảm trừ TC. Ngày nghỉ, lễ:";
            // 
            // labelControl31
            // 
            this.labelControl31.Location = new System.Drawing.Point(9, 206);
            this.labelControl31.Name = "labelControl31";
            this.labelControl31.Size = new System.Drawing.Size(146, 13);
            this.labelControl31.TabIndex = 14;
            this.labelControl31.Text = "Giảm trừ TCĐ. Ngày chủ nhật:";
            // 
            // labelControl26
            // 
            this.labelControl26.Location = new System.Drawing.Point(9, 102);
            this.labelControl26.Name = "labelControl26";
            this.labelControl26.Size = new System.Drawing.Size(138, 13);
            this.labelControl26.TabIndex = 14;
            this.labelControl26.Text = "Giảm trừ TC. Ngày chủ nhật:";
            // 
            // cboTaxOvertimeNightWorkdayType
            // 
            this.cboTaxOvertimeNightWorkdayType.Location = new System.Drawing.Point(158, 171);
            this.cboTaxOvertimeNightWorkdayType.Name = "cboTaxOvertimeNightWorkdayType";
            this.cboTaxOvertimeNightWorkdayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboTaxOvertimeNightWorkdayType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo tỷ lệ phân số"});
            this.cboTaxOvertimeNightWorkdayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboTaxOvertimeNightWorkdayType.Size = new System.Drawing.Size(148, 20);
            this.cboTaxOvertimeNightWorkdayType.TabIndex = 13;
            this.cboTaxOvertimeNightWorkdayType.SelectedIndexChanged += new System.EventHandler(this.cboTaxOvertimeWorkdayType_SelectedIndexChanged);
            // 
            // cboTaxOvertimeWorkdayType
            // 
            this.cboTaxOvertimeWorkdayType.Location = new System.Drawing.Point(158, 67);
            this.cboTaxOvertimeWorkdayType.MenuManager = this.barManager1;
            this.cboTaxOvertimeWorkdayType.Name = "cboTaxOvertimeWorkdayType";
            this.cboTaxOvertimeWorkdayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboTaxOvertimeWorkdayType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo tỷ lệ phân số"});
            this.cboTaxOvertimeWorkdayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboTaxOvertimeWorkdayType.Size = new System.Drawing.Size(148, 20);
            this.cboTaxOvertimeWorkdayType.TabIndex = 13;
            this.cboTaxOvertimeWorkdayType.SelectedIndexChanged += new System.EventHandler(this.cboTaxOvertimeWorkdayType_SelectedIndexChanged);
            // 
            // labelControl29
            // 
            this.labelControl29.Location = new System.Drawing.Point(9, 174);
            this.labelControl29.Name = "labelControl29";
            this.labelControl29.Size = new System.Drawing.Size(139, 13);
            this.labelControl29.TabIndex = 10;
            this.labelControl29.Text = "Giảm trừ TCĐ. Ngày thường:";
            // 
            // labelControl24
            // 
            this.labelControl24.Location = new System.Drawing.Point(9, 70);
            this.labelControl24.Name = "labelControl24";
            this.labelControl24.Size = new System.Drawing.Size(131, 13);
            this.labelControl24.TabIndex = 10;
            this.labelControl24.Text = "Giảm trừ TC. Ngày thường:";
            // 
            // labelControl21
            // 
            this.labelControl21.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl21.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl21.Location = new System.Drawing.Point(425, 30);
            this.labelControl21.Name = "labelControl21";
            this.labelControl21.Size = new System.Drawing.Size(22, 13);
            this.labelControl21.TabIndex = 5;
            this.labelControl21.Text = "VND";
            // 
            // lcPersonIncomeTax
            // 
            this.lcPersonIncomeTax.Location = new System.Drawing.Point(9, 29);
            this.lcPersonIncomeTax.Name = "lcPersonIncomeTax";
            this.lcPersonIncomeTax.Size = new System.Drawing.Size(230, 13);
            this.lcPersonIncomeTax.TabIndex = 3;
            this.lcPersonIncomeTax.Text = "Tiền giảm trừ gia cảnh cho mỗi người phụ thuộc:";
            // 
            // calPersonIncomeTax
            // 
            this.calPersonIncomeTax.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calPersonIncomeTax.Location = new System.Drawing.Point(310, 27);
            this.calPersonIncomeTax.Name = "calPersonIncomeTax";
            this.calPersonIncomeTax.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calPersonIncomeTax.Properties.Appearance.Options.UseFont = true;
            this.calPersonIncomeTax.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calPersonIncomeTax.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calPersonIncomeTax.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calPersonIncomeTax.Properties.EditFormat.FormatString = "{0} VND";
            this.calPersonIncomeTax.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calPersonIncomeTax.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calPersonIncomeTax.Size = new System.Drawing.Size(108, 20);
            this.calPersonIncomeTax.TabIndex = 4;
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.labelControl28);
            this.groupBox3.Controls.Add(this.labelControl25);
            this.groupBox3.Controls.Add(this.cboRoundNumberSalary);
            this.groupBox3.Controls.Add(this.labelControl23);
            this.groupBox3.Controls.Add(this.cboSalaryHourType);
            this.groupBox3.Controls.Add(this.cheIsAllowanceReCreate);
            this.groupBox3.Controls.Add(this.cheIsGroupSalaryOvertime);
            this.groupBox3.Controls.Add(this.labelControl6);
            this.groupBox3.Location = new System.Drawing.Point(18, 1228);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(465, 177);
            this.groupBox3.TabIndex = 20;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Tùy chọn khác";
            // 
            // labelControl28
            // 
            this.labelControl28.Appearance.ForeColor = System.Drawing.Color.DimGray;
            this.labelControl28.Location = new System.Drawing.Point(18, 152);
            this.labelControl28.Name = "labelControl28";
            this.labelControl28.Size = new System.Drawing.Size(326, 13);
            this.labelControl28.TabIndex = 33;
            this.labelControl28.Text = "1 => 7.386.762,1    |   -3 => 7.387.000    |   0 => 7.387.762    |...";
            // 
            // labelControl25
            // 
            this.labelControl25.Appearance.ForeColor = System.Drawing.Color.DimGray;
            this.labelControl25.Location = new System.Drawing.Point(355, 130);
            this.labelControl25.Name = "labelControl25";
            this.labelControl25.Size = new System.Drawing.Size(102, 13);
            this.labelControl25.TabIndex = 32;
            this.labelControl25.Text = "Ví dụ: 7.386.762,126";
            // 
            // cboRoundNumberSalary
            // 
            this.cboRoundNumberSalary.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.cboRoundNumberSalary.Location = new System.Drawing.Point(291, 127);
            this.cboRoundNumberSalary.Name = "cboRoundNumberSalary";
            this.cboRoundNumberSalary.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.cboRoundNumberSalary.Properties.Appearance.Options.UseFont = true;
            this.cboRoundNumberSalary.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboRoundNumberSalary.Properties.DisplayFormat.FormatString = "{0} VND";
            this.cboRoundNumberSalary.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cboRoundNumberSalary.Properties.EditFormat.FormatString = "{0} VND";
            this.cboRoundNumberSalary.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.cboRoundNumberSalary.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.cboRoundNumberSalary.Size = new System.Drawing.Size(58, 20);
            this.cboRoundNumberSalary.TabIndex = 21;
            // 
            // labelControl23
            // 
            this.labelControl23.Location = new System.Drawing.Point(19, 129);
            this.labelControl23.Name = "labelControl23";
            this.labelControl23.Size = new System.Drawing.Size(267, 13);
            this.labelControl23.TabIndex = 20;
            this.labelControl23.Text = "Làm tròn tiền lương thực lãnh tới chữ số thập phân thứ:";
            // 
            // cboSalaryHourType
            // 
            this.cboSalaryHourType.EditValue = "Tính theo lương căn bản";
            this.cboSalaryHourType.Location = new System.Drawing.Point(132, 83);
            this.cboSalaryHourType.Name = "cboSalaryHourType";
            this.cboSalaryHourType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboSalaryHourType.Properties.Items.AddRange(new object[] {
            "Tính theo lương căn bản",
            "Tính theo tổng lương (Lương căn bản + Phụ cấp)"});
            this.cboSalaryHourType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboSalaryHourType.Size = new System.Drawing.Size(304, 20);
            this.cboSalaryHourType.TabIndex = 19;
            // 
            // cheIsAllowanceReCreate
            // 
            this.cheIsAllowanceReCreate.Location = new System.Drawing.Point(17, 53);
            this.cheIsAllowanceReCreate.Name = "cheIsAllowanceReCreate";
            this.cheIsAllowanceReCreate.Properties.AllowHtmlDraw = DevExpress.Utils.DefaultBoolean.True;
            this.cheIsAllowanceReCreate.Properties.Caption = "Phát sinh lại phụ cấp khi bấm nút <b><i>Tính lại</i></b> trong bảng lương <color=" +
    "blue>(*)</color>";
            this.cheIsAllowanceReCreate.Size = new System.Drawing.Size(326, 19);
            this.cheIsAllowanceReCreate.TabIndex = 1;
            // 
            // cheIsGroupSalaryOvertime
            // 
            this.cheIsGroupSalaryOvertime.EditValue = true;
            this.cheIsGroupSalaryOvertime.Location = new System.Drawing.Point(17, 27);
            this.cheIsGroupSalaryOvertime.Name = "cheIsGroupSalaryOvertime";
            this.cheIsGroupSalaryOvertime.Properties.Caption = "Hiển thị lương tăng ca chung vào bảng lương tháng";
            this.cheIsGroupSalaryOvertime.Size = new System.Drawing.Size(326, 19);
            this.cheIsGroupSalaryOvertime.TabIndex = 1;
            // 
            // labelControl6
            // 
            this.labelControl6.Location = new System.Drawing.Point(20, 86);
            this.labelControl6.Name = "labelControl6";
            this.labelControl6.Size = new System.Drawing.Size(96, 13);
            this.labelControl6.TabIndex = 3;
            this.labelControl6.Text = "Cách tính lương giờ:";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.labelControl4);
            this.groupBox2.Controls.Add(this.labelControl1);
            this.groupBox2.Controls.Add(this.calLateEarlyMinute);
            this.groupBox2.Controls.Add(this.cheIsLateEarly);
            this.groupBox2.Location = new System.Drawing.Point(18, 1156);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(465, 50);
            this.groupBox2.TabIndex = 19;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Trừ tiền đi trễ, về sớm";
            // 
            // labelControl4
            // 
            this.labelControl4.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl4.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl4.Location = new System.Drawing.Point(330, 23);
            this.labelControl4.Name = "labelControl4";
            this.labelControl4.Size = new System.Drawing.Size(36, 13);
            this.labelControl4.TabIndex = 8;
            this.labelControl4.Text = "(phút)";
            // 
            // labelControl1
            // 
            this.labelControl1.AllowHtmlString = true;
            this.labelControl1.Location = new System.Drawing.Point(184, 23);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new System.Drawing.Size(62, 13);
            this.labelControl1.TabIndex = 7;
            this.labelControl1.Text = "<color=blue><b>>=</b></color> Số phút:";
            // 
            // calLateEarlyMinute
            // 
            this.calLateEarlyMinute.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calLateEarlyMinute.Location = new System.Drawing.Point(250, 20);
            this.calLateEarlyMinute.Name = "calLateEarlyMinute";
            this.calLateEarlyMinute.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calLateEarlyMinute.Properties.Appearance.Options.UseFont = true;
            this.calLateEarlyMinute.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calLateEarlyMinute.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calLateEarlyMinute.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calLateEarlyMinute.Properties.EditFormat.FormatString = "{0} VND";
            this.calLateEarlyMinute.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calLateEarlyMinute.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calLateEarlyMinute.Size = new System.Drawing.Size(74, 20);
            this.calLateEarlyMinute.TabIndex = 2;
            // 
            // cheIsLateEarly
            // 
            this.cheIsLateEarly.Location = new System.Drawing.Point(16, 21);
            this.cheIsLateEarly.Name = "cheIsLateEarly";
            this.cheIsLateEarly.Properties.Caption = "Có trừ tiền đi trễ, về sớm";
            this.cheIsLateEarly.Size = new System.Drawing.Size(149, 19);
            this.cheIsLateEarly.TabIndex = 0;
            this.cheIsLateEarly.CheckedChanged += new System.EventHandler(this.cheIsLateEarly_CheckedChanged);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.labelControl22);
            this.groupBox1.Controls.Add(this.gcList);
            this.groupBox1.Location = new System.Drawing.Point(18, 709);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(465, 254);
            this.groupBox1.TabIndex = 18;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Biểu Suất Tính Thuế Thu Nhập Cá Nhân";
            // 
            // labelControl22
            // 
            this.labelControl22.Location = new System.Drawing.Point(11, 27);
            this.labelControl22.Name = "labelControl22";
            this.labelControl22.Size = new System.Drawing.Size(352, 13);
            this.labelControl22.TabIndex = 1;
            this.labelControl22.Text = "Mức thuế suất dựa trên thu nhập của người lao động sau khi đã giảm trừ:";
            // 
            // gcList
            // 
            this.gcList.Cursor = System.Windows.Forms.Cursors.Default;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new System.Drawing.Point(8, 51);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.repMoney});
            this.gcList.Size = new System.Drawing.Size(448, 193);
            this.gcList.TabIndex = 0;
            this.gcList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gbList});
            // 
            // gbList
            // 
            this.gbList.Appearance.GroupRow.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
            this.gbList.ColumnPanelRowHeight = 32;
            this.gbList.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.colPITID,
            this.colTaxStep,
            this.colFromMoney,
            this.colToMoney,
            this.colTaxProgressive,
            this.colTaxRate});
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "Kéo và Thả cột vào đây để nhóm dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
            this.gbList.OptionsView.RowAutoHeight = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.OptionsView.ShowIndicator = false;
            this.gbList.InitNewRow += new DevExpress.XtraGrid.Views.Grid.InitNewRowEventHandler(this.gbList_InitNewRow);
            this.gbList.KeyDown += new System.Windows.Forms.KeyEventHandler(this.gbList_KeyDown);
            // 
            // colPITID
            // 
            this.colPITID.Caption = "PITID";
            this.colPITID.FieldName = "PITID";
            this.colPITID.Name = "colPITID";
            // 
            // colTaxStep
            // 
            this.colTaxStep.Caption = "Bậc";
            this.colTaxStep.FieldName = "TaxStep";
            this.colTaxStep.Name = "colTaxStep";
            this.colTaxStep.OptionsColumn.AllowEdit = false;
            this.colTaxStep.OptionsColumn.ReadOnly = true;
            this.colTaxStep.Width = 45;
            // 
            // colFromMoney
            // 
            this.colFromMoney.Caption = "Thu nhập từ (VND)";
            this.colFromMoney.ColumnEdit = this.repMoney;
            this.colFromMoney.FieldName = "FromMoney";
            this.colFromMoney.Name = "colFromMoney";
            this.colFromMoney.Visible = true;
            this.colFromMoney.VisibleIndex = 0;
            this.colFromMoney.Width = 107;
            // 
            // repMoney
            // 
            this.repMoney.AutoHeight = false;
            this.repMoney.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.repMoney.Mask.UseMaskAsDisplayFormat = true;
            this.repMoney.Name = "repMoney";
            // 
            // colToMoney
            // 
            this.colToMoney.Caption = "Thu nhập đến (VND)";
            this.colToMoney.ColumnEdit = this.repMoney;
            this.colToMoney.FieldName = "ToMoney";
            this.colToMoney.Name = "colToMoney";
            this.colToMoney.Visible = true;
            this.colToMoney.VisibleIndex = 1;
            this.colToMoney.Width = 103;
            // 
            // colTaxProgressive
            // 
            this.colTaxProgressive.Caption = "Lũy tiến";
            this.colTaxProgressive.ColumnEdit = this.repMoney;
            this.colTaxProgressive.FieldName = "TaxProgressive";
            this.colTaxProgressive.Name = "colTaxProgressive";
            this.colTaxProgressive.Visible = true;
            this.colTaxProgressive.VisibleIndex = 2;
            this.colTaxProgressive.Width = 82;
            // 
            // colTaxRate
            // 
            this.colTaxRate.Caption = "Thuế suất (%)";
            this.colTaxRate.ColumnEdit = this.repMoney;
            this.colTaxRate.FieldName = "TaxRate";
            this.colTaxRate.Name = "colTaxRate";
            this.colTaxRate.Visible = true;
            this.colTaxRate.VisibleIndex = 3;
            this.colTaxRate.Width = 66;
            // 
            // grIncomeTax
            // 
            this.grIncomeTax.Controls.Add(this.labelControl20);
            this.grIncomeTax.Controls.Add(this.lcIncomeTax);
            this.grIncomeTax.Controls.Add(this.calIncomeTax);
            this.grIncomeTax.Location = new System.Drawing.Point(18, 336);
            this.grIncomeTax.Name = "grIncomeTax";
            this.grIncomeTax.Size = new System.Drawing.Size(465, 62);
            this.grIncomeTax.TabIndex = 17;
            this.grIncomeTax.TabStop = false;
            this.grIncomeTax.Text = "Thuế Thu Nhập Cá Nhân";
            // 
            // labelControl20
            // 
            this.labelControl20.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl20.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl20.Location = new System.Drawing.Point(423, 28);
            this.labelControl20.Name = "labelControl20";
            this.labelControl20.Size = new System.Drawing.Size(22, 13);
            this.labelControl20.TabIndex = 2;
            this.labelControl20.Text = "VND";
            // 
            // lcIncomeTax
            // 
            this.lcIncomeTax.Location = new System.Drawing.Point(10, 28);
            this.lcIncomeTax.Name = "lcIncomeTax";
            this.lcIncomeTax.Size = new System.Drawing.Size(248, 13);
            this.lcIncomeTax.TabIndex = 0;
            this.lcIncomeTax.Text = "Người lao động đóng thuế TNCN khi có thu nhập từ:";
            // 
            // calIncomeTax
            // 
            this.calIncomeTax.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calIncomeTax.Location = new System.Drawing.Point(309, 25);
            this.calIncomeTax.Name = "calIncomeTax";
            this.calIncomeTax.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calIncomeTax.Properties.Appearance.Options.UseFont = true;
            this.calIncomeTax.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calIncomeTax.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calIncomeTax.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calIncomeTax.Properties.EditFormat.FormatString = "{0} VND";
            this.calIncomeTax.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calIncomeTax.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calIncomeTax.Size = new System.Drawing.Size(108, 20);
            this.calIncomeTax.TabIndex = 1;
            // 
            // grOverTime
            // 
            this.grOverTime.Controls.Add(this.cboOvertimeSaturdayType);
            this.grOverTime.Controls.Add(this.labelControl5);
            this.grOverTime.Controls.Add(this.labelControl13);
            this.grOverTime.Controls.Add(this.labelControl11);
            this.grOverTime.Controls.Add(this.labelControl10);
            this.grOverTime.Controls.Add(this.calCoefficientOvertimeNightSunday);
            this.grOverTime.Controls.Add(this.calCoefficientOvertimeNightHoliday);
            this.grOverTime.Controls.Add(this.calCoefficientOvertimeNightWorkday);
            this.grOverTime.Controls.Add(this.lcSunday);
            this.grOverTime.Controls.Add(this.calCoefficientOvertimeSunday);
            this.grOverTime.Controls.Add(this.lcHoliday);
            this.grOverTime.Controls.Add(this.calCoefficientOvertimeHoliday);
            this.grOverTime.Controls.Add(this.lcWorkday);
            this.grOverTime.Controls.Add(this.calCoefficientOvertimeWorkday);
            this.grOverTime.Location = new System.Drawing.Point(19, 977);
            this.grOverTime.Name = "grOverTime";
            this.grOverTime.Size = new System.Drawing.Size(464, 162);
            this.grOverTime.TabIndex = 16;
            this.grOverTime.TabStop = false;
            this.grOverTime.Text = "Hệ Số Tính Giờ Tăng Ca (TC: Tăng ca - TCĐ: Tăng ca đêm)";
            // 
            // cboOvertimeSaturdayType
            // 
            this.cboOvertimeSaturdayType.EditValue = "Tính như ngày thường";
            this.cboOvertimeSaturdayType.Location = new System.Drawing.Point(115, 126);
            this.cboOvertimeSaturdayType.MenuManager = this.barManager1;
            this.cboOvertimeSaturdayType.Name = "cboOvertimeSaturdayType";
            this.cboOvertimeSaturdayType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboOvertimeSaturdayType.Properties.Items.AddRange(new object[] {
            "Tính như ngày thường",
            "Tính như ngày chủ nhật"});
            this.cboOvertimeSaturdayType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboOvertimeSaturdayType.Size = new System.Drawing.Size(231, 20);
            this.cboOvertimeSaturdayType.TabIndex = 19;
            // 
            // labelControl5
            // 
            this.labelControl5.Location = new System.Drawing.Point(18, 129);
            this.labelControl5.Name = "labelControl5";
            this.labelControl5.Size = new System.Drawing.Size(90, 13);
            this.labelControl5.TabIndex = 18;
            this.labelControl5.Text = "Vào ngày thứ bảy:";
            // 
            // labelControl13
            // 
            this.labelControl13.Location = new System.Drawing.Point(236, 92);
            this.labelControl13.Name = "labelControl13";
            this.labelControl13.Size = new System.Drawing.Size(125, 13);
            this.labelControl13.TabIndex = 17;
            this.labelControl13.Text = "Hệ số TCĐ. Ngày nghỉ, lể:";
            // 
            // labelControl11
            // 
            this.labelControl11.Location = new System.Drawing.Point(236, 63);
            this.labelControl11.Name = "labelControl11";
            this.labelControl11.Size = new System.Drawing.Size(132, 13);
            this.labelControl11.TabIndex = 16;
            this.labelControl11.Text = "Hệ số TCĐ. Ngày chủ nhật:";
            // 
            // labelControl10
            // 
            this.labelControl10.Location = new System.Drawing.Point(236, 34);
            this.labelControl10.Name = "labelControl10";
            this.labelControl10.Size = new System.Drawing.Size(125, 13);
            this.labelControl10.TabIndex = 15;
            this.labelControl10.Text = "Hệ số TCĐ. Ngày thường:";
            // 
            // calCoefficientOvertimeNightSunday
            // 
            this.calCoefficientOvertimeNightSunday.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calCoefficientOvertimeNightSunday.Location = new System.Drawing.Point(377, 60);
            this.calCoefficientOvertimeNightSunday.Name = "calCoefficientOvertimeNightSunday";
            this.calCoefficientOvertimeNightSunday.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calCoefficientOvertimeNightSunday.Properties.Appearance.Options.UseFont = true;
            this.calCoefficientOvertimeNightSunday.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calCoefficientOvertimeNightSunday.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeNightSunday.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeNightSunday.Properties.EditFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeNightSunday.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeNightSunday.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calCoefficientOvertimeNightSunday.Size = new System.Drawing.Size(58, 20);
            this.calCoefficientOvertimeNightSunday.TabIndex = 11;
            // 
            // calCoefficientOvertimeNightHoliday
            // 
            this.calCoefficientOvertimeNightHoliday.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calCoefficientOvertimeNightHoliday.Location = new System.Drawing.Point(377, 89);
            this.calCoefficientOvertimeNightHoliday.Name = "calCoefficientOvertimeNightHoliday";
            this.calCoefficientOvertimeNightHoliday.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calCoefficientOvertimeNightHoliday.Properties.Appearance.Options.UseFont = true;
            this.calCoefficientOvertimeNightHoliday.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calCoefficientOvertimeNightHoliday.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeNightHoliday.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeNightHoliday.Properties.EditFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeNightHoliday.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeNightHoliday.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calCoefficientOvertimeNightHoliday.Size = new System.Drawing.Size(58, 20);
            this.calCoefficientOvertimeNightHoliday.TabIndex = 13;
            // 
            // calCoefficientOvertimeNightWorkday
            // 
            this.calCoefficientOvertimeNightWorkday.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calCoefficientOvertimeNightWorkday.Location = new System.Drawing.Point(377, 31);
            this.calCoefficientOvertimeNightWorkday.Name = "calCoefficientOvertimeNightWorkday";
            this.calCoefficientOvertimeNightWorkday.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calCoefficientOvertimeNightWorkday.Properties.Appearance.Options.UseFont = true;
            this.calCoefficientOvertimeNightWorkday.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calCoefficientOvertimeNightWorkday.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeNightWorkday.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeNightWorkday.Properties.EditFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeNightWorkday.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeNightWorkday.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calCoefficientOvertimeNightWorkday.Size = new System.Drawing.Size(58, 20);
            this.calCoefficientOvertimeNightWorkday.TabIndex = 9;
            // 
            // lcSunday
            // 
            this.lcSunday.Location = new System.Drawing.Point(16, 63);
            this.lcSunday.Name = "lcSunday";
            this.lcSunday.Size = new System.Drawing.Size(124, 13);
            this.lcSunday.TabIndex = 3;
            this.lcSunday.Text = "Hệ số TC. Ngày chủ nhật:";
            // 
            // calCoefficientOvertimeSunday
            // 
            this.calCoefficientOvertimeSunday.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calCoefficientOvertimeSunday.Location = new System.Drawing.Point(147, 60);
            this.calCoefficientOvertimeSunday.Name = "calCoefficientOvertimeSunday";
            this.calCoefficientOvertimeSunday.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calCoefficientOvertimeSunday.Properties.Appearance.Options.UseFont = true;
            this.calCoefficientOvertimeSunday.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calCoefficientOvertimeSunday.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeSunday.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeSunday.Properties.EditFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeSunday.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeSunday.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calCoefficientOvertimeSunday.Size = new System.Drawing.Size(61, 20);
            this.calCoefficientOvertimeSunday.TabIndex = 4;
            // 
            // lcHoliday
            // 
            this.lcHoliday.Location = new System.Drawing.Point(18, 92);
            this.lcHoliday.Name = "lcHoliday";
            this.lcHoliday.Size = new System.Drawing.Size(117, 13);
            this.lcHoliday.TabIndex = 6;
            this.lcHoliday.Text = "Hệ số TC. Ngày nghỉ, lể:";
            // 
            // calCoefficientOvertimeHoliday
            // 
            this.calCoefficientOvertimeHoliday.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calCoefficientOvertimeHoliday.Location = new System.Drawing.Point(147, 89);
            this.calCoefficientOvertimeHoliday.Name = "calCoefficientOvertimeHoliday";
            this.calCoefficientOvertimeHoliday.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calCoefficientOvertimeHoliday.Properties.Appearance.Options.UseFont = true;
            this.calCoefficientOvertimeHoliday.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calCoefficientOvertimeHoliday.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeHoliday.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeHoliday.Properties.EditFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeHoliday.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeHoliday.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calCoefficientOvertimeHoliday.Size = new System.Drawing.Size(61, 20);
            this.calCoefficientOvertimeHoliday.TabIndex = 7;
            // 
            // lcWorkday
            // 
            this.lcWorkday.Location = new System.Drawing.Point(16, 34);
            this.lcWorkday.Name = "lcWorkday";
            this.lcWorkday.Size = new System.Drawing.Size(117, 13);
            this.lcWorkday.TabIndex = 0;
            this.lcWorkday.Text = "Hệ số TC. Ngày thường:";
            // 
            // calCoefficientOvertimeWorkday
            // 
            this.calCoefficientOvertimeWorkday.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calCoefficientOvertimeWorkday.Location = new System.Drawing.Point(147, 31);
            this.calCoefficientOvertimeWorkday.Name = "calCoefficientOvertimeWorkday";
            this.calCoefficientOvertimeWorkday.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calCoefficientOvertimeWorkday.Properties.Appearance.Options.UseFont = true;
            this.calCoefficientOvertimeWorkday.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calCoefficientOvertimeWorkday.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeWorkday.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeWorkday.Properties.EditFormat.FormatString = "{0} VND";
            this.calCoefficientOvertimeWorkday.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calCoefficientOvertimeWorkday.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calCoefficientOvertimeWorkday.Size = new System.Drawing.Size(61, 20);
            this.calCoefficientOvertimeWorkday.TabIndex = 1;
            // 
            // grUnion
            // 
            this.grUnion.Controls.Add(this.cboUnionType1);
            this.grUnion.Controls.Add(this.cboUnionType);
            this.grUnion.Controls.Add(this.lbUnitCofficientUnion1);
            this.grUnion.Controls.Add(this.labelControl7);
            this.grUnion.Controls.Add(this.calUnionValue1);
            this.grUnion.Controls.Add(this.lbUnitCofficientUnion);
            this.grUnion.Controls.Add(this.labelControl12);
            this.grUnion.Controls.Add(this.lcMaximumUnion);
            this.grUnion.Controls.Add(this.calMaximumUnion);
            this.grUnion.Controls.Add(this.lcCoefficientUnion);
            this.grUnion.Controls.Add(this.calUnionValue);
            this.grUnion.Location = new System.Drawing.Point(19, 193);
            this.grUnion.Name = "grUnion";
            this.grUnion.Size = new System.Drawing.Size(464, 125);
            this.grUnion.TabIndex = 15;
            this.grUnion.TabStop = false;
            this.grUnion.Text = "Phí Công Đoàn";
            // 
            // cboUnionType1
            // 
            this.cboUnionType1.EditValue = "Theo tỷ lệ %";
            this.cboUnionType1.Location = new System.Drawing.Point(157, 56);
            this.cboUnionType1.MenuManager = this.barManager1;
            this.cboUnionType1.Name = "cboUnionType1";
            this.cboUnionType1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboUnionType1.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo số tiền"});
            this.cboUnionType1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboUnionType1.Size = new System.Drawing.Size(145, 20);
            this.cboUnionType1.TabIndex = 10;
            this.cboUnionType1.SelectedIndexChanged += new System.EventHandler(this.cboCoefficientUnionType1_SelectedIndexChanged);
            // 
            // cboUnionType
            // 
            this.cboUnionType.EditValue = "Theo tỷ lệ %";
            this.cboUnionType.Location = new System.Drawing.Point(157, 24);
            this.cboUnionType.MenuManager = this.barManager1;
            this.cboUnionType.Name = "cboUnionType";
            this.cboUnionType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.cboUnionType.Properties.Items.AddRange(new object[] {
            "Theo tỷ lệ %",
            "Theo số tiền"});
            this.cboUnionType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
            this.cboUnionType.Size = new System.Drawing.Size(145, 20);
            this.cboUnionType.TabIndex = 9;
            this.cboUnionType.SelectedIndexChanged += new System.EventHandler(this.cboCoefficientUnionType_SelectedIndexChanged);
            // 
            // lbUnitCofficientUnion1
            // 
            this.lbUnitCofficientUnion1.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbUnitCofficientUnion1.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbUnitCofficientUnion1.Location = new System.Drawing.Point(422, 59);
            this.lbUnitCofficientUnion1.Name = "lbUnitCofficientUnion1";
            this.lbUnitCofficientUnion1.Size = new System.Drawing.Size(13, 13);
            this.lbUnitCofficientUnion1.TabIndex = 8;
            this.lbUnitCofficientUnion1.Text = "%";
            // 
            // labelControl7
            // 
            this.labelControl7.Location = new System.Drawing.Point(9, 59);
            this.labelControl7.Name = "labelControl7";
            this.labelControl7.Size = new System.Drawing.Size(118, 13);
            this.labelControl7.TabIndex = 6;
            this.labelControl7.Text = "Người sử dụng lao động:";
            // 
            // calUnionValue1
            // 
            this.calUnionValue1.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calUnionValue1.Location = new System.Drawing.Point(308, 56);
            this.calUnionValue1.Name = "calUnionValue1";
            this.calUnionValue1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calUnionValue1.Properties.Appearance.Options.UseFont = true;
            this.calUnionValue1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calUnionValue1.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calUnionValue1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnionValue1.Properties.EditFormat.FormatString = "{0} VND";
            this.calUnionValue1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnionValue1.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calUnionValue1.Size = new System.Drawing.Size(108, 20);
            this.calUnionValue1.TabIndex = 7;
            // 
            // lbUnitCofficientUnion
            // 
            this.lbUnitCofficientUnion.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.lbUnitCofficientUnion.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.lbUnitCofficientUnion.Location = new System.Drawing.Point(422, 27);
            this.lbUnitCofficientUnion.Name = "lbUnitCofficientUnion";
            this.lbUnitCofficientUnion.Size = new System.Drawing.Size(13, 13);
            this.lbUnitCofficientUnion.TabIndex = 2;
            this.lbUnitCofficientUnion.Text = "%";
            // 
            // labelControl12
            // 
            this.labelControl12.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl12.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl12.Location = new System.Drawing.Point(320, 97);
            this.labelControl12.Name = "labelControl12";
            this.labelControl12.Size = new System.Drawing.Size(22, 13);
            this.labelControl12.TabIndex = 5;
            this.labelControl12.Text = "VND";
            // 
            // lcMaximumUnion
            // 
            this.lcMaximumUnion.Location = new System.Drawing.Point(9, 91);
            this.lcMaximumUnion.Name = "lcMaximumUnion";
            this.lcMaximumUnion.Size = new System.Drawing.Size(114, 13);
            this.lcMaximumUnion.TabIndex = 3;
            this.lcMaximumUnion.Text = "Định mức phí CĐ tối đa:";
            // 
            // calMaximumUnion
            // 
            this.calMaximumUnion.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calMaximumUnion.Location = new System.Drawing.Point(158, 90);
            this.calMaximumUnion.Name = "calMaximumUnion";
            this.calMaximumUnion.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calMaximumUnion.Properties.Appearance.Options.UseFont = true;
            this.calMaximumUnion.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calMaximumUnion.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calMaximumUnion.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calMaximumUnion.Properties.EditFormat.FormatString = "{0} VND";
            this.calMaximumUnion.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calMaximumUnion.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calMaximumUnion.Size = new System.Drawing.Size(144, 20);
            this.calMaximumUnion.TabIndex = 4;
            // 
            // lcCoefficientUnion
            // 
            this.lcCoefficientUnion.Location = new System.Drawing.Point(9, 27);
            this.lcCoefficientUnion.Name = "lcCoefficientUnion";
            this.lcCoefficientUnion.Size = new System.Drawing.Size(76, 13);
            this.lcCoefficientUnion.TabIndex = 0;
            this.lcCoefficientUnion.Text = "Người lao động:";
            // 
            // calUnionValue
            // 
            this.calUnionValue.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calUnionValue.Location = new System.Drawing.Point(308, 24);
            this.calUnionValue.Name = "calUnionValue";
            this.calUnionValue.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calUnionValue.Properties.Appearance.Options.UseFont = true;
            this.calUnionValue.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calUnionValue.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calUnionValue.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnionValue.Properties.EditFormat.FormatString = "{0} VND";
            this.calUnionValue.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnionValue.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calUnionValue.Size = new System.Drawing.Size(108, 20);
            this.calUnionValue.TabIndex = 1;
            // 
            // lcMaximumInsurance
            // 
            this.lcMaximumInsurance.Location = new System.Drawing.Point(18, 160);
            this.lcMaximumInsurance.Name = "lcMaximumInsurance";
            this.lcMaximumInsurance.Size = new System.Drawing.Size(135, 13);
            this.lcMaximumInsurance.TabIndex = 12;
            this.lcMaximumInsurance.Text = "Định mức đóng BHXH tối đa:";
            // 
            // calMaximumInsurance
            // 
            this.calMaximumInsurance.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calMaximumInsurance.Location = new System.Drawing.Point(176, 157);
            this.calMaximumInsurance.Name = "calMaximumInsurance";
            this.calMaximumInsurance.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calMaximumInsurance.Properties.Appearance.Options.UseFont = true;
            this.calMaximumInsurance.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calMaximumInsurance.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calMaximumInsurance.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calMaximumInsurance.Properties.EditFormat.FormatString = "{0} VND";
            this.calMaximumInsurance.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calMaximumInsurance.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calMaximumInsurance.Size = new System.Drawing.Size(145, 20);
            this.calMaximumInsurance.TabIndex = 13;
            // 
            // labelControl8
            // 
            this.labelControl8.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl8.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl8.Location = new System.Drawing.Point(339, 160);
            this.labelControl8.Name = "labelControl8";
            this.labelControl8.Size = new System.Drawing.Size(22, 13);
            this.labelControl8.TabIndex = 14;
            this.labelControl8.Text = "VND";
            // 
            // grInsuranceByCompany
            // 
            this.grInsuranceByCompany.Controls.Add(this.labelControl2);
            this.grInsuranceByCompany.Controls.Add(this.labelControl3);
            this.grInsuranceByCompany.Controls.Add(this.labelControl9);
            this.grInsuranceByCompany.Controls.Add(this.labelControl17);
            this.grInsuranceByCompany.Controls.Add(this.labelControl18);
            this.grInsuranceByCompany.Controls.Add(this.labelControl19);
            this.grInsuranceByCompany.Controls.Add(this.calSocialInsurance1);
            this.grInsuranceByCompany.Controls.Add(this.calUnemploymentInsurance1);
            this.grInsuranceByCompany.Controls.Add(this.calHealthInsurance1);
            this.grInsuranceByCompany.Location = new System.Drawing.Point(259, 16);
            this.grInsuranceByCompany.Name = "grInsuranceByCompany";
            this.grInsuranceByCompany.Size = new System.Drawing.Size(224, 128);
            this.grInsuranceByCompany.TabIndex = 6;
            this.grInsuranceByCompany.TabStop = false;
            this.grInsuranceByCompany.Text = "Bảo Hiểm Do Công Ty Chi Trả";
            // 
            // labelControl2
            // 
            this.labelControl2.Location = new System.Drawing.Point(25, 98);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new System.Drawing.Size(81, 13);
            this.labelControl2.TabIndex = 16;
            this.labelControl2.Text = "(%) Đóng BHTN:";
            // 
            // labelControl3
            // 
            this.labelControl3.Location = new System.Drawing.Point(24, 67);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new System.Drawing.Size(80, 13);
            this.labelControl3.TabIndex = 15;
            this.labelControl3.Text = "(%) Đóng BHYT:";
            // 
            // labelControl9
            // 
            this.labelControl9.Location = new System.Drawing.Point(23, 32);
            this.labelControl9.Name = "labelControl9";
            this.labelControl9.Size = new System.Drawing.Size(81, 13);
            this.labelControl9.TabIndex = 14;
            this.labelControl9.Text = "(%) Đóng BHXH:";
            // 
            // labelControl17
            // 
            this.labelControl17.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl17.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl17.Location = new System.Drawing.Point(184, 99);
            this.labelControl17.Name = "labelControl17";
            this.labelControl17.Size = new System.Drawing.Size(13, 13);
            this.labelControl17.TabIndex = 13;
            this.labelControl17.Text = "%";
            // 
            // labelControl18
            // 
            this.labelControl18.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl18.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl18.Location = new System.Drawing.Point(184, 66);
            this.labelControl18.Name = "labelControl18";
            this.labelControl18.Size = new System.Drawing.Size(13, 13);
            this.labelControl18.TabIndex = 12;
            this.labelControl18.Text = "%";
            // 
            // labelControl19
            // 
            this.labelControl19.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl19.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl19.Location = new System.Drawing.Point(184, 32);
            this.labelControl19.Name = "labelControl19";
            this.labelControl19.Size = new System.Drawing.Size(13, 13);
            this.labelControl19.TabIndex = 11;
            this.labelControl19.Text = "%";
            // 
            // calSocialInsurance1
            // 
            this.calSocialInsurance1.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calSocialInsurance1.Location = new System.Drawing.Point(116, 29);
            this.calSocialInsurance1.Name = "calSocialInsurance1";
            this.calSocialInsurance1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calSocialInsurance1.Properties.Appearance.Options.UseFont = true;
            this.calSocialInsurance1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calSocialInsurance1.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calSocialInsurance1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calSocialInsurance1.Properties.EditFormat.FormatString = "{0} VND";
            this.calSocialInsurance1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calSocialInsurance1.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calSocialInsurance1.Size = new System.Drawing.Size(62, 20);
            this.calSocialInsurance1.TabIndex = 1;
            // 
            // calUnemploymentInsurance1
            // 
            this.calUnemploymentInsurance1.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calUnemploymentInsurance1.Location = new System.Drawing.Point(114, 95);
            this.calUnemploymentInsurance1.Name = "calUnemploymentInsurance1";
            this.calUnemploymentInsurance1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calUnemploymentInsurance1.Properties.Appearance.Options.UseFont = true;
            this.calUnemploymentInsurance1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calUnemploymentInsurance1.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calUnemploymentInsurance1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnemploymentInsurance1.Properties.EditFormat.FormatString = "{0} VND";
            this.calUnemploymentInsurance1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnemploymentInsurance1.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calUnemploymentInsurance1.Size = new System.Drawing.Size(62, 20);
            this.calUnemploymentInsurance1.TabIndex = 7;
            // 
            // calHealthInsurance1
            // 
            this.calHealthInsurance1.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calHealthInsurance1.Location = new System.Drawing.Point(115, 62);
            this.calHealthInsurance1.Name = "calHealthInsurance1";
            this.calHealthInsurance1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calHealthInsurance1.Properties.Appearance.Options.UseFont = true;
            this.calHealthInsurance1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calHealthInsurance1.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calHealthInsurance1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calHealthInsurance1.Properties.EditFormat.FormatString = "{0} VND";
            this.calHealthInsurance1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calHealthInsurance1.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calHealthInsurance1.Size = new System.Drawing.Size(62, 20);
            this.calHealthInsurance1.TabIndex = 4;
            // 
            // grInsuranceByEmployee
            // 
            this.grInsuranceByEmployee.Controls.Add(this.labelControl16);
            this.grInsuranceByEmployee.Controls.Add(this.labelControl15);
            this.grInsuranceByEmployee.Controls.Add(this.labelControl14);
            this.grInsuranceByEmployee.Controls.Add(this.lcUnemploymentInsurance1);
            this.grInsuranceByEmployee.Controls.Add(this.calUnemploymentInsurance);
            this.grInsuranceByEmployee.Controls.Add(this.lcHealthInsurance1);
            this.grInsuranceByEmployee.Controls.Add(this.calHealthInsurance);
            this.grInsuranceByEmployee.Controls.Add(this.lcSocialInsurance1);
            this.grInsuranceByEmployee.Controls.Add(this.calSocialInsurance);
            this.grInsuranceByEmployee.Location = new System.Drawing.Point(19, 16);
            this.grInsuranceByEmployee.Name = "grInsuranceByEmployee";
            this.grInsuranceByEmployee.Size = new System.Drawing.Size(224, 128);
            this.grInsuranceByEmployee.TabIndex = 1;
            this.grInsuranceByEmployee.TabStop = false;
            this.grInsuranceByEmployee.Text = "Bảo Hiểm Do Người Lao Động Đóng";
            // 
            // labelControl16
            // 
            this.labelControl16.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl16.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl16.Location = new System.Drawing.Point(184, 101);
            this.labelControl16.Name = "labelControl16";
            this.labelControl16.Size = new System.Drawing.Size(13, 13);
            this.labelControl16.TabIndex = 10;
            this.labelControl16.Text = "%";
            // 
            // labelControl15
            // 
            this.labelControl15.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl15.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl15.Location = new System.Drawing.Point(184, 68);
            this.labelControl15.Name = "labelControl15";
            this.labelControl15.Size = new System.Drawing.Size(13, 13);
            this.labelControl15.TabIndex = 9;
            this.labelControl15.Text = "%";
            // 
            // labelControl14
            // 
            this.labelControl14.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.labelControl14.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            this.labelControl14.Location = new System.Drawing.Point(184, 32);
            this.labelControl14.Name = "labelControl14";
            this.labelControl14.Size = new System.Drawing.Size(13, 13);
            this.labelControl14.TabIndex = 8;
            this.labelControl14.Text = "%";
            // 
            // lcUnemploymentInsurance1
            // 
            this.lcUnemploymentInsurance1.Location = new System.Drawing.Point(25, 98);
            this.lcUnemploymentInsurance1.Name = "lcUnemploymentInsurance1";
            this.lcUnemploymentInsurance1.Size = new System.Drawing.Size(81, 13);
            this.lcUnemploymentInsurance1.TabIndex = 6;
            this.lcUnemploymentInsurance1.Text = "(%) Đóng BHTN:";
            // 
            // calUnemploymentInsurance
            // 
            this.calUnemploymentInsurance.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calUnemploymentInsurance.Location = new System.Drawing.Point(115, 97);
            this.calUnemploymentInsurance.Name = "calUnemploymentInsurance";
            this.calUnemploymentInsurance.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calUnemploymentInsurance.Properties.Appearance.Options.UseFont = true;
            this.calUnemploymentInsurance.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calUnemploymentInsurance.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calUnemploymentInsurance.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnemploymentInsurance.Properties.EditFormat.FormatString = "{0} VND";
            this.calUnemploymentInsurance.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calUnemploymentInsurance.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calUnemploymentInsurance.Size = new System.Drawing.Size(63, 20);
            this.calUnemploymentInsurance.TabIndex = 7;
            // 
            // lcHealthInsurance1
            // 
            this.lcHealthInsurance1.Location = new System.Drawing.Point(24, 67);
            this.lcHealthInsurance1.Name = "lcHealthInsurance1";
            this.lcHealthInsurance1.Size = new System.Drawing.Size(80, 13);
            this.lcHealthInsurance1.TabIndex = 3;
            this.lcHealthInsurance1.Text = "(%) Đóng BHYT:";
            // 
            // calHealthInsurance
            // 
            this.calHealthInsurance.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calHealthInsurance.Location = new System.Drawing.Point(115, 64);
            this.calHealthInsurance.Name = "calHealthInsurance";
            this.calHealthInsurance.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calHealthInsurance.Properties.Appearance.Options.UseFont = true;
            this.calHealthInsurance.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calHealthInsurance.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calHealthInsurance.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calHealthInsurance.Properties.EditFormat.FormatString = "{0} VND";
            this.calHealthInsurance.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calHealthInsurance.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calHealthInsurance.Size = new System.Drawing.Size(63, 20);
            this.calHealthInsurance.TabIndex = 4;
            // 
            // lcSocialInsurance1
            // 
            this.lcSocialInsurance1.Location = new System.Drawing.Point(23, 32);
            this.lcSocialInsurance1.Name = "lcSocialInsurance1";
            this.lcSocialInsurance1.Size = new System.Drawing.Size(81, 13);
            this.lcSocialInsurance1.TabIndex = 0;
            this.lcSocialInsurance1.Text = "(%) Đóng BHXH:";
            // 
            // calSocialInsurance
            // 
            this.calSocialInsurance.EditValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.calSocialInsurance.Location = new System.Drawing.Point(114, 29);
            this.calSocialInsurance.Name = "calSocialInsurance";
            this.calSocialInsurance.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
            this.calSocialInsurance.Properties.Appearance.Options.UseFont = true;
            this.calSocialInsurance.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.calSocialInsurance.Properties.DisplayFormat.FormatString = "{0} VND";
            this.calSocialInsurance.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calSocialInsurance.Properties.EditFormat.FormatString = "{0} VND";
            this.calSocialInsurance.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
            this.calSocialInsurance.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calSocialInsurance.Size = new System.Drawing.Size(64, 20);
            this.calSocialInsurance.TabIndex = 1;
            // 
            // ppMenu
            // 
            this.ppMenu.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
            new DevExpress.XtraBars.LinkPersistInfo(this.bbiDelete),
            new DevExpress.XtraBars.LinkPersistInfo(this.bbiDelete)});
            this.ppMenu.Manager = this.barManager1;
            this.ppMenu.Name = "ppMenu";
            // 
            // xucSalaryFormula
            // 
            this.Controls.Add(this.xtraScrollableControl1);
            this.Controls.Add(this.barDockControlLeft);
            this.Controls.Add(this.barDockControlRight);
            this.Controls.Add(this.barDockControlBottom);
            this.Controls.Add(this.barDockControlTop);
            this.Name = "xucSalaryFormula";
            this.Size = new System.Drawing.Size(506, 1429);
            this.xtraScrollableControl1.ResumeLayout(false);
            this.xtraScrollableControl1.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeNightHolidayValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeNightSundayValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeNightWorkdayValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeHolidayValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeSundayValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTaxOvertimeWorkdayValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeNightHolidayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeHolidayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeNightSundayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeSundayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeNightWorkdayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboTaxOvertimeWorkdayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calPersonIncomeTax.Properties)).EndInit();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cboRoundNumberSalary.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboSalaryHourType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cheIsAllowanceReCreate.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cheIsGroupSalaryOvertime.Properties)).EndInit();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calLateEarlyMinute.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cheIsLateEarly.Properties)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.gcList)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gbList)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repMoney)).EndInit();
            this.grIncomeTax.ResumeLayout(false);
            this.grIncomeTax.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calIncomeTax.Properties)).EndInit();
            this.grOverTime.ResumeLayout(false);
            this.grOverTime.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cboOvertimeSaturdayType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeNightSunday.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeNightHoliday.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeNightWorkday.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeSunday.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeHoliday.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calCoefficientOvertimeWorkday.Properties)).EndInit();
            this.grUnion.ResumeLayout(false);
            this.grUnion.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cboUnionType1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.cboUnionType.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calUnionValue1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calMaximumUnion.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calUnionValue.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calMaximumInsurance.Properties)).EndInit();
            this.grInsuranceByCompany.ResumeLayout(false);
            this.grInsuranceByCompany.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calSocialInsurance1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calUnemploymentInsurance1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calHealthInsurance1.Properties)).EndInit();
            this.grInsuranceByEmployee.ResumeLayout(false);
            this.grInsuranceByEmployee.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.calUnemploymentInsurance.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calHealthInsurance.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.calSocialInsurance.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ppMenu)).EndInit();
            this.ResumeLayout(false);

        }

        private void InitPIT()
        {
            this.barManager1.SetPopupContextMenu(this.gcList, this.ppMenu);
            this.gcList.DataSource = new DIC_PIT().GetList();
        }

        public void Save()
        {
            DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA {
                SocialInsurance = double.Parse(this.calSocialInsurance.Text),
                HealthInsurance = double.Parse(this.calHealthInsurance.Text),
                UnemploymentInsurance = double.Parse(this.calUnemploymentInsurance.Text),
                SocialInsurance1 = double.Parse(this.calSocialInsurance1.Text),
                HealthInsurance1 = double.Parse(this.calHealthInsurance1.Text),
                UnemploymentInsurance1 = double.Parse(this.calUnemploymentInsurance1.Text),
                MaximumInsurance = decimal.Parse(this.calMaximumInsurance.Text),
                UnionType = this.cboUnionType.SelectedIndex
            };
            if (this.cboUnionType.SelectedIndex == 0)
            {
                dic_salary_formula.UnionValue = decimal.Parse(this.calUnionValue.Text);
            }
            else
            {
                dic_salary_formula.UnionValue = decimal.Parse(this.calUnionValue.Text);
            }
            dic_salary_formula.UnionType1 = this.cboUnionType1.SelectedIndex;
            if (this.cboUnionType1.SelectedIndex == 0)
            {
                dic_salary_formula.UnionValue1 = decimal.Parse(this.calUnionValue1.Text);
            }
            else
            {
                dic_salary_formula.UnionValue1 = decimal.Parse(this.calUnionValue1.Text);
            }
            dic_salary_formula.MaximumUnion = decimal.Parse(this.calMaximumUnion.Text);
            dic_salary_formula.IncomeTax = decimal.Parse(this.calIncomeTax.Text);
            dic_salary_formula.PersonIncomeTax = decimal.Parse(this.calPersonIncomeTax.Text);
            dic_salary_formula.CoefficientOvertimeWorkday = double.Parse(this.calCoefficientOvertimeWorkday.Text);
            dic_salary_formula.CoefficientOvertimeSunday = double.Parse(this.calCoefficientOvertimeSunday.Text);
            dic_salary_formula.CoefficientOvertimeHoliday = double.Parse(this.calCoefficientOvertimeHoliday.Text);
            dic_salary_formula.CoefficientOvertimeNightWorkday = double.Parse(this.calCoefficientOvertimeNightWorkday.Text);
            dic_salary_formula.CoefficientOvertimeNightSunday = double.Parse(this.calCoefficientOvertimeNightSunday.Text);
            dic_salary_formula.CoefficientOvertimeNightHoliday = double.Parse(this.calCoefficientOvertimeNightHoliday.Text);
            dic_salary_formula.TaxOvertimeWorkdayType = this.cboTaxOvertimeWorkdayType.SelectedIndex;
            if (this.cboTaxOvertimeWorkdayType.SelectedIndex == 0)
            {
                dic_salary_formula.TaxOvertimeWorkdayValue = double.Parse(this.txtTaxOvertimeWorkdayValue.Text).ToString();
            }
            else
            {
                dic_salary_formula.TaxOvertimeWorkdayValue = this.txtTaxOvertimeWorkdayValue.Text;
            }
            dic_salary_formula.TaxOvertimeSundayType = this.cboTaxOvertimeSundayType.SelectedIndex;
            if (this.cboTaxOvertimeSundayType.SelectedIndex == 0)
            {
                dic_salary_formula.TaxOvertimeSundayValue = double.Parse(this.txtTaxOvertimeSundayValue.Text).ToString();
            }
            else
            {
                dic_salary_formula.TaxOvertimeSundayValue = this.txtTaxOvertimeSundayValue.Text;
            }
            dic_salary_formula.TaxOvertimeHolidayType = this.cboTaxOvertimeHolidayType.SelectedIndex;
            if (this.cboTaxOvertimeHolidayType.SelectedIndex == 0)
            {
                dic_salary_formula.TaxOvertimeHolidayValue = double.Parse(this.txtTaxOvertimeHolidayValue.Text).ToString();
            }
            else
            {
                dic_salary_formula.TaxOvertimeHolidayValue = this.txtTaxOvertimeHolidayValue.Text;
            }
            dic_salary_formula.TaxOvertimeNightWorkdayType = this.cboTaxOvertimeNightWorkdayType.SelectedIndex;
            if (this.cboTaxOvertimeNightWorkdayType.SelectedIndex == 0)
            {
                dic_salary_formula.TaxOvertimeNightWorkdayValue = double.Parse(this.txtTaxOvertimeNightWorkdayValue.Text).ToString();
            }
            else
            {
                dic_salary_formula.TaxOvertimeNightWorkdayValue = this.txtTaxOvertimeNightWorkdayValue.Text;
            }
            dic_salary_formula.TaxOvertimeNightSundayType = this.cboTaxOvertimeNightSundayType.SelectedIndex;
            if (this.cboTaxOvertimeNightSundayType.SelectedIndex == 0)
            {
                dic_salary_formula.TaxOvertimeNightSundayValue = double.Parse(this.txtTaxOvertimeNightSundayValue.Text).ToString();
            }
            else
            {
                dic_salary_formula.TaxOvertimeNightSundayValue = this.txtTaxOvertimeNightSundayValue.Text;
            }
            dic_salary_formula.TaxOvertimeNightHolidayType = this.cboTaxOvertimeNightHolidayType.SelectedIndex;
            if (this.cboTaxOvertimeNightHolidayType.SelectedIndex == 0)
            {
                dic_salary_formula.TaxOvertimeNightHolidayValue = double.Parse(this.txtTaxOvertimeNightHolidayValue.Text).ToString();
            }
            else
            {
                dic_salary_formula.TaxOvertimeNightHolidayValue = this.txtTaxOvertimeNightHolidayValue.Text;
            }
            dic_salary_formula.OvertimeSaturdayType = this.cboOvertimeSaturdayType.SelectedIndex;
            dic_salary_formula.IsLateEarly = this.cheIsLateEarly.Checked;
            dic_salary_formula.LateEarlyMinute = double.Parse(this.calLateEarlyMinute.Text);
            dic_salary_formula.IsGroupSalaryOvertime = this.cheIsGroupSalaryOvertime.Checked;
            dic_salary_formula.SalaryHourType = this.cboSalaryHourType.SelectedIndex;
            dic_salary_formula.RoundNumberSalary = int.Parse(this.cboRoundNumberSalary.Value.ToString());
            string text = dic_salary_formula.Update();
            if (text != "OK")
            {
                XtraMessageBox.Show(text, "Cảnh B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            this.SavePIT();
            this.clsSalaryOption.IsAllowanceReCreate = this.cheIsAllowanceReCreate.Checked;
            this.clsSalaryOption.SaveOption();
        }

        public void SavePIT()
        {
            DIC_PIT dic_pit = new DIC_PIT();
            dic_pit.Delete();
            try
            {
                foreach (DataRow row in (this.gcList.DataSource as DataTable).Rows)
                {
                    try
                    {
                        if (row != null)
                        {
                            dic_pit.Insert(new Guid(row["PITID"].ToString()), int.Parse(row["TaxStep"].ToString()), decimal.Parse(row["FromMoney"].ToString()), decimal.Parse(row["ToMoney"].ToString()), decimal.Parse(row["TaxProgressive"].ToString()), double.Parse(row["TaxRate"].ToString()));
                        }
                    }
                    catch
                    {
                    }
                }
            }
            catch
            {
            }
        }
    }
}

